package com.l024.ljl.controller;


import com.l024.ljl.entity.SysTypeEntity;
import com.l024.ljl.service.SysTypeService;
import com.l024.ljl.util.UserLoginToken;
import com.l024.ljl.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(value="类型列表")
@RestController
@RequestMapping("/type")
public class SysTypeController implements BaseController<SysTypeEntity>{
    @Autowired
    private SysTypeService sysTypeService;

    @Override
    public R add(SysTypeEntity sysTypeEntity) {
        return null;
    }

    @Override
    public R del(Long id) {
        return null;
    }

    @Override
    public R update(SysTypeEntity sysTypeEntity) {
        return null;
    }


    @ApiOperation(httpMethod = "GET", value = "获取所有类型", response = R.class,
            notes = "获取所有类型")
    @GetMapping("/all")
    @Override
    public R getAll() {
        return R.ok("获取所有类型",sysTypeService.getAll());
    }

    @Override
    public R get(SysTypeEntity sysTypeEntity) {
        return null;
    }

    @Override
    public R page(Map<String, Object> map) {
        return null;
    }
}
